Folding of Finite Program Terms to Recursive Program Schemes

نویسندگان

  • Emanuel Kitzelmann
  • Ute Schmid
  • Martin Mühlpfordt
  • Fritz Wysotzki
چکیده

We present an approach to inductive synthesis of functional programs based on the detection of recurrence relations. A given term is considered as the kth unfolding of an unknown recursive program. If a recurrence relations can be identified in the term, it can be folded into a recursive program which (a) can reproduce the term and (b) generalizes over it. Our approach goes beyond Summers’ classical approach in several aspects: It is language independent and works for terms belonging to an arbitrary term algebra; it allows induction of sets of recursive equations which are in some arbitrary ‘calls’ relation; induced equations can be dependent on more than one input parameters and we can detect interdependencies of variable substitutions in recursive calls; the given input terms can represent incomplete unfoldings of an hypothetical recursive program.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Inductive Program Synthesis: From Theory to Application

We present an approach to folding of finite program terms based on the detection of recurrence relations in a single given term which is considered as the kth unfolding of an unknown recursive program. Our approach goes beyond Summers’ classical approach of inductive program synthesis in several aspects and allows to deal with a larger class of programming problems. We show how inductive synthe...

متن کامل

Equivalences and Transformations Systems-applications to Recursive Program Schemes and Grammars* of Regular

This work presents a unified theory of recursive program schemes, context-free grammars, grammars on arbitrary algebraic structures and, in fact, recursive definitions of all kind by means of regular systems. The equivalences of regular systems associated with either all their solutions or their least solutions (in all domains of appropriate type satisfying a set of algebraic laws expressed by ...

متن کامل

Induction of Recursive Program Schemes

In this paper we present an approach to the induction of re-cursive structures from examples which is based on the notion of recursive program schemes. We separate induction from examples in two stages: (1) constructing initial programs from examples and (2) folding initial programs to recursive program schemes. By this separation, the induction of recursive program schemes can be reduced to a ...

متن کامل

Proofs by Program Transformations

Logic program transformation systems are often described as a collection of unfolding, folding and goal replacement transformation rules. Given a program P , a logic program transformation system derives a sequence of programs P = P0; P1; : : : ; PN , such that for all 0 i < N , Pi+1 is obtained from Pi by application of one of the above rules. Logic program transformation systems are usually p...

متن کامل

Parallel Functions In Recursive Program Schemes

We consider models of sequential programs (recursive program schemes) and analyze their extension with parallel functions. For this purpose, we introduce a special class of parallel functions (called invariant functions) that don’t depend on interpretation of domain on which they are defined. Expressive power of extended classes of recursive schemes is analyzed in terms of sequential reducibili...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2002